//
//  EInspection
//
//   on 2019/3/25.
//  Copyright © 2019 Winny. All rights reserved.
//


#ifndef MJUrlApi_h
#define MJUrlApi_h

#if DEBUG
//内网服务器
#define ServiceUrl @"https://singapore.royalyzeapp.com/api/test"
#define H5ServiceUrl @"https://h5.royalyzeapp.com/H5_TEST"

//#define ServiceUrl @"https://dev.royalyzeapp.com/"
//#define ServiceUrl @"http://47.106.206.142:8080/"

//#define ServiceUrl @"http://192.168.31.161:8080/"
//#define ServiceUrl @"https://api.royalyzeapp.com/"
//#define H5ServiceUrl @"http://192.168.31.241:8899" //本地

//正式服务器
//#define ServiceUrl @"https://singapore.royalyzeapp.com/api"
//#define H5ServiceUrl @"https://h5.royalyzeapp.com/H5_Health"

#else
//正式服务器
#define ServiceUrl @"https://singapore.royalyzeapp.com/api"
#define H5ServiceUrl @"https://h5.royalyzeapp.com/H5_Health"

#endif

/// 微信客服
#define weixin_services @"https://work.weixin.qq.com/kfid/kfc12712c366e448f18"

//记录最后选择的URL服务器地址
#define RECORD_LAST_SELECTION_SERVICE_URL_KEY @"RECORD_LAST_SELECTION_SERVICE_URL_KEY"

//获取检测弹框类型
#define GetPanel @"detection/gout/showPanel"
//上传痛风记录
#define PostGoutRecord @"detection/gout/add"

//获取当前用户全部受检人
#define FindPatientsList @"patient/find"
//精准搜索受检人
#define SearchPatientsList @"patient/search"
//关联受检者
#define UserBindingPatient @"patient/userBindingPatient"


#pragma mark - 以下是2021/11/01改版后接入接口

#pragma mark - 登录
//获取鉴权
#define GetAuthentication @"app-basis/getAuthentication"
//获取验证码
#define SendPhoneCode @"app-basis/sendPhoneCode"
//验证token有效性
#define TokenValidityVerify @"app-basi/tokenValidityVerify"
//验证码登陆
//#define CodeLogin @"user-app/user/login"

//验证短信验证码
#define ValidSmsCode  @"app-basis/validSmsCode"
//一键登录
#define OneLogin  @"user-app/user/mobTechAuthLogin"
//获取用户加入机构信息
#define GetUserByOrg_List  @"org-app/userByOrg/getUserByOrg"
//获取用户现操作的机构信息
#define GetCurrentInfo  @"org-app/userByOrg/getCurrentInfo"
//选择机构
#define UserChooseOrg  @"org-app/userByOrg/chooseOrg"
//注销账户服务（逻辑删除）
#define log_out  @"user-app/log_out"
#pragma mark - 检测
//补充症状及方案
#define symptomsAndAdvice @"nine-to-one-app/symptomsAndAdvice/record"
//获取消息通知
#define notification_list @"nine-to-one-app/symptomsAndAdvice/notification"
//获取受检者最新方案
#define lastStageProgress @"gout-detection-app/detection/gout/V2/lastStageProgress"
/// 所有方案阶段列表
#define goutSchemeInfoList @"gout-detection-app/detection/gout/V2/goutSchemeInfoList"
/// 痛风方案日历
#define goutSchemeCalendar @"gout-detection-app/detection/gout/V2/goutSchemeCalendar"

/// 获取知痛风检测
#define goutDetectionRecord @"gout-detection-app/detection/gout/V2"
/// 查看诊疗方案
#define goutSchemeRecord @"gout-detection-app/detection/gout/V2/goutScheme"
/// 获取n天尿酸最后数据
#define Graph_analysis @"nine-to-one-app/graph_analysis/uric_acid_day_limit"
/// 获取全部检测记录
#define Detection_List @"nine-to-one-app/nine_to_one/v2/detection_list"
//查询痛风检测
#define gout_detection @"gout-detection-app/detection/gout/V2"
/// 受检者未完成的检测
#define Undone_detection @"nine-to-one-app/patient/health_management/undone_detection"
/// 糖尿病分期检测记录
#define Diabetes_staging @"diabetes-app/diabetes_staging"
/// 糖尿病早筛检测记录
#define Diabetes_screening @"diabetes-app/diabetes_screening"
/// 痛风受检者状况记录
#define Detection_condition @"gout-detection-app/detection/gout/V2/condition"
/// 首次启用诊疗方案
#define EnableGoutScheme @"gout-detection-app/detection/gout/V2/enableGoutScheme"
/// 切换当日启用首选方案
#define ToggleGoutScheme @"gout-detection-app/detection/gout/V2/toggleGoutScheme"
/// 更改方案
#define ChangeGoutScheme @"gout-detection-app/detection/gout/V2/changeGoutScheme"
/// 查询知痛风检测列表——分页
#define Detection_Page_List @"gout-detection-app/detection/gout/V2/page"
/// 获取u10全部检测记录
#define Detection_u10_List @"u10-detection-app/detection/u10/v2/findPage"
/// 分页查找肾功能检测记录
#define Detection_renal_List @"u10-detection-app/detection/renal/findPage"
/// 获取有数据的检测记录年月份
#define Detection_List_Month @"nine-to-one-app/nine_to_one/detection_month_list"
/// 是否有效期内的“未完成的检测”
#define Detection_continueDetection @"gout-detection-app/detection/gout/V2/continueDetection"
/// 上传检测记录
#define Push_Detection_Record @"nine-to-one-app/nine_to_one/v2/uric_acid"
/// 上传尿十项检测记录
#define Push_u10_Detection_Record @"u10-detection-app/detection/u10/v2/create"
/// 上传知肾功检测记录
#define Push_renal_Detection_Record @"u10-detection-app/detection/renal/create"
#define Get_Detection_Panel @"gout-detection-app/detection/gout/showPanel"
/// 获取痛风趋势分析
#define Get_trend_analysis @"nine-to-one-app/graph_analysis/trend_analysis/gout"
/// 最近添加的受检人档案
#define Recently_add_patients @"nine-to-one-app/patient/health_management/recently_add_patients"

/// 获取微信公众号配置信息
#define QrCodePictureUrl @"wx-mp/mp_qrcode/qrCodePictureUrl"

#pragma mark - 支付模块
/// 发起收费服务
#define pay_initiateFee @"wx-pay/detection/initiateFee"
/// 可以开始检测
#define pay_canDetection @"wx-pay/detection/canDetection"
/// 更改收费服务状态
#define pay_changeChargeState @"wx-pay/detection/changeChargeState"
/// 获取收费服务列表
#define pay_getFeePay @"wx-pay/detection/getFeePay"
/// 获取已完成服务数量
#define pay_getCompletedCount @"wx-pay/detection/getCompletedCount"

#pragma mark - 微信登录
/// 微注册 POST
#define WXRegister @"user-app/user/weiXinRegister"
/// 移除微信绑定
#define RemoveWxUid @"user-app/user/removeWxUid"
/// 微信登录
#define WeiXinLogin @"user-app/user/weiXinLogin"


#pragma mark - 用户
/// 修改用户信息
#define PutUserInfo @"user-app/user"
/// 加载医生
#define Get_Doctor @"user-app/doctor"
/// 修改机构信息
#define PutOrgInfo @"org-app/userByOrg/editMemberInfo"
/// 查找受检者--分页
#define Patient_List @"user-app/patient/page"
/// 查找受检者（简单查询）
#define Patient_simpleFind @"user-app/patient/simpleFind"
/// 加载可转入受检者档案
#define Get_dataTransfer @"user-app/dataTransfer"


#define PutDoctorAuthorized @"user-app/doctor"


#pragma mark - 检查更新/获取版本号
/// 获取版更新信息
#define GetAppUpgrade @"app-basis/getAppUpgrade"



#pragma mark - 受检者
/// 查找受检者
#define PatientFind @"user-app/patient/find"
/// 添加受检者
#define PatientAdd @"user-app/patient"
/// 查找受检者 全局
#define PatientSuperFind @"user-app/patient/superFind"
/// 查询痛风记录
#define FindGoutRecord @"gout-detection-app/detection/gout/find"

#pragma mark ------------------------------------- 协议，隐私
/// 隐私政策
#define secrity_agreement @"/#/gout/secrity_agreement"

/// 用户协议
#define user_agreement @"/#/gout/user_agreement"

/// 常见问题
#define common_problem @"/#/gout/help"

/// 账号注销
#define close_account @"/#/gout/uric_logout/iOS"

/// 公司电话
#define company_tel @"tel://4006062180"

/// 公司电话
#define company_tel_str @"400-606-2180"

/// 公司邮箱
#define company_mail @"mailto://info@royalyze.com"

/// 关于ums
#define about_ums @"/#/gout/ums"

/// 痛风分型
#define gout_type @"/#/gout/gout_type"

/// u10
#define u10_URL @"/#/u10-detail-v2"

/// 肾功能
#define renal_detail_URL @"/#/renal-detail"

/// 未读消息
#define doctor_message_URL  @"/#/gout/doctor_message"

/// 填写建议
#define doctor_review_URL  @"/#/gout/review"

/// 启动方案（首次）
#define curr_scheme_URL  @"/#/gout/curr_scheme"

/// 查看方案
#define gout_scheme_URL  @"/#/gout/scheme"

/// 更换方案
#define modify_scheme_URL  @"/#/gout/modify_scheme"

/// 图片域名
#define royalyzeapp_URL  @"http://oss.royalyze.royalyzeapp.com/"

/// 血糖
#define blood_sugar_URL @"/#/glucose/index"

/// 血糖2
#define blood_sugar_v2_URL @"/#/glucose/index_v2"

#define blood_sugar_v3_URL @"/#/glucose/index_v3"
/// 总胆固醇
#define total_cholesterol_URL @"/#/cholesterol/index"

/// 上传血糖检测记录
#define Push_blood_sugar_Record @"nine-to-one-app/nine_to_one/blood_sugar"

/// 上传总胆固醇检测记录
#define Push_total_cholesterol_Record @"nine-to-one-app/nine_to_one/v2/total_cholesterol"

/// 上传糖尿病分期检测记录
#define Push_diabetes_staging_Record @"diabetes-app/diabetes_staging"

/// 上传糖尿病早筛检测记录
#define Push_diabetes_screening_Record @"diabetes-app/diabetes_screening"

/// 使用教程
#define use_course @"http://rqcode.royalyzeapp.com/operationalGuideline" 

/// 受检者检测概括
#define detection_generalize @"nine-to-one-app/patient/health_management/detection_generalize"

/// 编辑当前机构下受检者的服务配置
#define pay_ExperienceCard @"wx-pay/ExperienceCard"

/// 获取受检者的所有体验卡
#define pay_ExperienceCard_list @"wx-pay/ExperienceCard/list"

/// 机构下可分配次卡
#define pay_can_out_amount @"wx-pay/ExperienceCard/org/can_out_amount"

/// 头像域名地址
#define acid_head_oss @"https://uric-acid-head.oss-cn-shenzhen.aliyuncs.com/"

/// 能否免除受检者关注公众号？
#define pay_subscribeExempt @"wx-pay/detection/subscribeExempt"

/// 免关注公众号
#define health_noSubscribeWeChat @"/#/health/noSubscribeWeChat"

#pragma mark ------------------------------------- 食药补充

/// 受检者食药记录详情
#define SCHEME_MED_DETAIL_URL @"/#/gout/foodSchemeReplenish"

/// 受检者食药记录列表
#define SCHEME_MED_URL @"/#/gout/foodMedicineList"

/// 机构食药记录列表
#define SCHEME_ORG_MED_URL @"/#/gout/foodMedicineOrgList"

/// 更新机构信息
#define org_app_org  @"org-app/org"

/// 获取申请列表
#define org_app_apply  @"org-app/patient/apply"

/// 受检者完整服务痛风食药备忘详情
#define SCHEME_GOUT_URL @"/#/gout/foodMedicineFullDetail"

/// 受检者完整服务痛风食药备忘详情V2
#define SCHEME_GOUT_V2_URL @"/#/gout/foodMedicineFullDetailV2"

/// 受检者7天食药备忘详情
#define SCHEME_SEVEN_URL @"/#/gout/foodMedicineSevenDetail"

/// 受检者7天食药备忘详情V2
#define SCHEME_SEVEN_V2_URL @"/#/gout/foodMedicineSevenDetailV2"

/// 受检者30天食药备忘详情V2
#define SCHEME_MONTH_NET_URL @"/#/gout/foodMedicineMonthDetailV2"

/// 受检者食药记录列表
#define SCHEME_MED_V2_URL @"/#/gout/foodMedicineListV2"

#pragma mark ------------------------------------- 痛风方案体验套餐

/// 获取痛风方案体验套餐
#define gout_scheme_experience  @"gout-detection-app/gout_scheme_experience"

/// 痛风方案体验套餐升级服务
#define gout_scheme_experience_upgrade  @"gout-detection-app/gout_scheme_experience/upgrade"

/// 过渡到完整方案
#define gout_experience  @"gout-detection-app/gout_scheme_experience/gout_scheme"

/// 7天服务食药备忘
#define Medicine_schemeExperience  @"gout-detection-app/PatientTakeMedicine/schemeExperience"

/// 痛风方案变动弹窗
#define gout_SchemeVariablePopup  @"gout-detection-app/detection/gout/V2/SchemeVariablePopup"

/// 体验方案日历
#define gout_scheme_experience_calendar @"gout-detection-app/gout_scheme_experience/calendar"


#pragma mark - 用户模块
/// 手机+验证码登录
#define user_login @"/user/login"
/// 电子邮箱+验证码 登录
#define user_emailLogin @"/user/emailLogin"
/// 退出登录
#define user_logout  @"/user/logout"
/// 通过电话查找
#define user_findByPhone  @"/user/findByPhone"
/// 用户修改
#define user_update  @"/user"
/// 更换手机号
#define user_changPhone  @"/user/changPhone"
/// 更换电子邮箱
#define user_changEmail  @"/user/changEmail"
/// 忘记密码
#define user_forgotPassword  @"/user/forgotPassword"
/// 忘记密码-使用邮箱
#define user_forgotPasswordByEmail  @"/user/forgotPasswordByEmail"
/// 设置密码
#define user_setPassword  @"/user/setPassword"
/// 修改密码
#define user_changePassword  @"/user/changePassword"
/// 账号密码 登录
#define user_loginByPassword  @"/user/loginByPassword"
/// 通过电子邮箱查找
#define user_findByEmail  @"/user/findByEmail"
/// 验证验证码
#define user_verifyCode  @"/appBasis/verifyCode"
/// 验证电子邮箱验证码
#define user_verifyEmailCode  @"/appBasis/verifyEmailCode"

#pragma mark - 痛风检测
/// 痛风查询
#define GoutDetection_select @"/GoutDetection"

#pragma mark - 血红蛋白检测
/// 血红蛋白查询
#define HemoglobinDetection_select @"/Hemoglobin"

#pragma mark - 总胆固醇检测
/// 总胆固醇查询
#define TotalCholesterolDetection_select @"/TotalCholesterol"

#pragma mark - 血糖检测
/// 血糖查询
#define BloodGlucoseDetection_select @"/BloodGlucose"

#pragma mark - 4合1检测
/// 4合1查询
#define MultipleDetection_select @"/MultipleDetection"

#pragma mark - 受检者
/// 受检者（查增删改）
#define patient_select @"/patient"

#pragma mark - 滑动验证
/// 滑块验证并发送短信
#define captcha_sendSms @"/anji-captcha/sendSms"

/// 滑块验证并发送邮件
#define captcha_sendEmail @"/anji-captcha/sendEmail"

#pragma mark - OSS服务
/// 上传头像（用户）
#define oss_user_headPic @"/oss/headPic/user"

/// 上传头像（患者）
#define oss_patient_headPic @"/oss/headPic/patient"

#pragma mark - 基础接口
/// 获取App版本更新信息
#define appBasis_getAppUpgrade @"/appBasis/getAppUpgrade"

/// 发送邮件
#define excel_sendMail @"/excel/sendMail"

#endif



